<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Iframe Communicator - Host Demo</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }
    .controls {
      margin: 20px 0;
      padding: 15px;
      background-color: #f5f5f5;
      border-radius: 8px;
    }
    button {
      padding: 8px 16px;
      margin-right: 10px;
      cursor: pointer;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 4px;
    }
    button:hover {
      background-color: #0056b3;
    }
    .info {
      margin: 10px 0;
    }
    #iframe-container {
      margin-top: 20px;
      border: 1px solid #ddd;
      border-radius: 8px;
      overflow: hidden;
    }
    iframe {
      width: 100%;
      height: 500px;
      border: none;
    }
  </style>
</head>
<body>
  <h1>Iframe Communicator - Host Demo</h1>
  
  <div class="controls">
    <h2>Controls</h2>
    <button id="back-btn">Navigate Iframe Back</button>
    <button id="forward-btn">Navigate Iframe Forward</button>
    
    <div class="info">
      <p>Iframe Current URL: <span id="iframe-url" style="font-family: monospace;"></span></p>
    </div>
  </div>
  
  <div id="iframe-container">
    <iframe id="demo-iframe" src="https://23974.d.d8d.fun"></iframe>
  </div>

  <script type="module" src="/main.js"></script>
</body>
</html>
